package xyz.zq.sf.auth.endpoint;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import xyz.zq.sf.common.core.util.R;

/**
 * token 管理中心
 *
 * @author hzq
 * @date 2021-02-08 16:54
 */
@Controller
@RequestMapping("/token")
public class SfTokenEndpoint {


    /**
     * 退出登录
     * 删除token
     *
     * @return 退出成功失败
     */
    @ResponseBody
    @DeleteMapping("/logout")
    public R logout() {
        return R.failed();
    }
}
